\(\int \frac {\cos ^3(a+b x)}{\sqrt {\csc (a+b x)}} \, dx\) [267]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [F(-1)]
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [F(-1)]

Optimal result

Integrand size = 19, antiderivative size = 35 \[ \int \frac {\cos ^3(a+b x)}{\sqrt {\csc (a+b x)}} \, dx=-\frac {2}{7 b \csc ^{\frac {7}{2}}(a+b x)}+\frac {2}{3 b \csc ^{\frac {3}{2}}(a+b x)} \]

[Out]

-2/7/b/csc(b*x+a)^(7/2)+2/3/b/csc(b*x+a)^(3/2)

Rubi [A] (verified)

Time = 0.05 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2701, 14} \[ \int \frac {\cos ^3(a+b x)}{\sqrt {\csc (a+b x)}} \, dx=\frac {2}{3 b \csc ^{\frac {3}{2}}(a+b x)}-\frac {2}{7 b \csc ^{\frac {7}{2}}(a+b x)} \]

[In]

Int[Cos[a + b*x]^3/Sqrt[Csc[a + b*x]],x]

[Out]

-2/(7*b*Csc[a + b*x]^(7/2)) + 2/(3*b*Csc[a + b*x]^(3/2))

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 2701

Int[(csc[(e_.) + (f_.)*(x_)]*(a_.))^(m_)*sec[(e_.) + (f_.)*(x_)]^(n_.), x_Symbol] :> Dist[-(f*a^n)^(-1), Subst
[Int[x^(m + n - 1)/(-1 + x^2/a^2)^((n + 1)/2), x], x, a*Csc[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && Integer
Q[(n + 1)/2] &&  !(IntegerQ[(m + 1)/2] && LtQ[0, m, n])

Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \frac {-1+x^2}{x^{9/2}} \, dx,x,\csc (a+b x)\right )}{b} \\ & = -\frac {\text {Subst}\left (\int \left (-\frac {1}{x^{9/2}}+\frac {1}{x^{5/2}}\right ) \, dx,x,\csc (a+b x)\right )}{b} \\ & = -\frac {2}{7 b \csc ^{\frac {7}{2}}(a+b x)}+\frac {2}{3 b \csc ^{\frac {3}{2}}(a+b x)} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.07 (sec) , antiderivative size = 29, normalized size of antiderivative = 0.83 \[ \int \frac {\cos ^3(a+b x)}{\sqrt {\csc (a+b x)}} \, dx=\frac {2 \left (-3+7 \csc ^2(a+b x)\right )}{21 b \csc ^{\frac {7}{2}}(a+b x)} \]

[In]

Integrate[Cos[a + b*x]^3/Sqrt[Csc[a + b*x]],x]

[Out]

(2*(-3 + 7*Csc[a + b*x]^2))/(21*b*Csc[a + b*x]^(7/2))

Maple [A] (verified)

Time = 0.91 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.74

method result size
default \(\frac {-\frac {2 \left (\sin ^{\frac {7}{2}}\left (b x +a \right )\right )}{7}+\frac {2 \left (\sin ^{\frac {3}{2}}\left (b x +a \right )\right )}{3}}{b}\) \(26\)

[In]

int(cos(b*x+a)^3/csc(b*x+a)^(1/2),x,method=_RETURNVERBOSE)

[Out]

(-2/7*sin(b*x+a)^(7/2)+2/3*sin(b*x+a)^(3/2))/b

Fricas [A] (verification not implemented)

none

Time = 0.29 (sec) , antiderivative size = 33, normalized size of antiderivative = 0.94 \[ \int \frac {\cos ^3(a+b x)}{\sqrt {\csc (a+b x)}} \, dx=-\frac {2 \, {\left (3 \, \cos \left (b x + a\right )^{4} + \cos \left (b x + a\right )^{2} - 4\right )}}{21 \, b \sqrt {\sin \left (b x + a\right )}} \]

[In]

integrate(cos(b*x+a)^3/csc(b*x+a)^(1/2),x, algorithm="fricas")

[Out]

-2/21*(3*cos(b*x + a)^4 + cos(b*x + a)^2 - 4)/(b*sqrt(sin(b*x + a)))

Sympy [F(-1)]

Timed out. \[ \int \frac {\cos ^3(a+b x)}{\sqrt {\csc (a+b x)}} \, dx=\text {Timed out} \]

[In]

integrate(cos(b*x+a)**3/csc(b*x+a)**(1/2),x)

[Out]

Timed out

Maxima [A] (verification not implemented)

none

Time = 0.19 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.71 \[ \int \frac {\cos ^3(a+b x)}{\sqrt {\csc (a+b x)}} \, dx=\frac {2 \, {\left (\frac {7}{\sin \left (b x + a\right )^{2}} - 3\right )} \sin \left (b x + a\right )^{\frac {7}{2}}}{21 \, b} \]

[In]

integrate(cos(b*x+a)^3/csc(b*x+a)^(1/2),x, algorithm="maxima")

[Out]

2/21*(7/sin(b*x + a)^2 - 3)*sin(b*x + a)^(7/2)/b

Giac [A] (verification not implemented)

none

Time = 0.32 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.74 \[ \int \frac {\cos ^3(a+b x)}{\sqrt {\csc (a+b x)}} \, dx=-\frac {2 \, {\left (3 \, \sin \left (b x + a\right )^{\frac {7}{2}} - 7 \, \sin \left (b x + a\right )^{\frac {3}{2}}\right )}}{21 \, b} \]

[In]

integrate(cos(b*x+a)^3/csc(b*x+a)^(1/2),x, algorithm="giac")

[Out]

-2/21*(3*sin(b*x + a)^(7/2) - 7*sin(b*x + a)^(3/2))/b

Mupad [F(-1)]

Timed out. \[ \int \frac {\cos ^3(a+b x)}{\sqrt {\csc (a+b x)}} \, dx=\int \frac {{\cos \left (a+b\,x\right )}^3}{\sqrt {\frac {1}{\sin \left (a+b\,x\right )}}} \,d x \]

[In]

int(cos(a + b*x)^3/(1/sin(a + b*x))^(1/2),x)

[Out]

int(cos(a + b*x)^3/(1/sin(a + b*x))^(1/2), x)